<template>
	<view class="">
		<view class="oneadv-tit pt-2 pl-2 pb-1" v-if="title">{{title}}</view>
		<view class="oneadv-img" v-if="cover">
			<image :src="cover" mode=""></image>
		</view>
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name: "oneadv",
		data() {
			return {

			};
		},
		props: ['title', 'cover']
	}
</script>

<style scoped>
	.oneadv-tit {
		font-size: 32rpx;
		font-weight: 900;
	}

	.oneadv-img image {
		width: 100%;
		display: block;
	}
</style>